/*
  学习目标：类型断言 - 又叫, "听哥的" 或 "听我的"
  作用: 告诉ts,以我写的类型为准
  场景: 当ts的类型推论, 不准确时使用
  语法:  值 as 你的类型
*/

const aNode = document.querySelector("#app") as HTMLAnchorElement;

aNode.href = "www.baidu.com";

type User = {
  name: string;
  age: number;
  token: string;
};

let user: User = {} as User;
